<h1>Editing rating</h1>

<%= error_messages_for :rating %>

<% form_for(:rating, :url => rating_path(@rating), :html => { :method => :put }) do |f| %>
  <p>
    <b>Amount</b><br />
    <%= f.text_field :amount %>
  </p>

  <p>
    <b>Subject</b><br />
    <%= f.text_field :subject_id %>
  </p>

  <p>
    <b>Subject type</b><br />
    <%= f.text_field :subject_type %>
  </p>

  <p>
    <b>Rater</b><br />
    <%= f.text_field :rater_id %>
  </p>

  <p>
    <b>Created at</b><br />
    <%= f.text_field :created_at %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', rating_path(@rating) %> |
<%= link_to 'Back', ratings_path %>